package pl.dsp.dsp1.ui;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class TransformationsWindow extends JDialog {

	public TransformationsWindow(MainWindow owner,
			WindowController controller) {
		super(owner, "Transforations toolbox");
		setResizable(false);
		setBounds(50, 50, 400, 150);

		JPanel contentPane = new JPanel(new BorderLayout(0,2));
		setContentPane(contentPane);
		contentPane.setBorder(new EmptyBorder(2, 2, 2, 2));
		
		JPanel actionMenu = new JPanel(new GridLayout(0, 2));
		contentPane.add(actionMenu, BorderLayout.CENTER);
		
		JButton dftButton = new JButton("DFT");
		dftButton.addActionListener(controller);
		actionMenu.add(dftButton);
		
		JButton idftButton = new JButton("IDFT");
		idftButton.addActionListener(controller);
		actionMenu.add(idftButton);
		
		JButton fftButton = new JButton("FFT");
		fftButton.addActionListener(controller);
		actionMenu.add(fftButton);
		
		JButton ifftButton = new JButton("IFFT");
		ifftButton.addActionListener(controller);
		actionMenu.add(ifftButton);
		
		JButton waveletButton = new JButton("Wavelet");
		waveletButton.addActionListener(controller);
		actionMenu.add(waveletButton);
		
		JButton iwaveletButton = new JButton("Inverse Wavelet");
		iwaveletButton.addActionListener(controller);
		actionMenu.add(iwaveletButton);
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -2561390570366479404L;

}
